/**
 * 
 */
package com.yidin.lsc;

import android.app.Activity;
import android.view.LayoutInflater;
import android.view.View;

/**
 * 容器基类
 * @author cola
 *
 */
public abstract class Container{
	protected Activity activity;
	protected View contentView;
	protected LayoutInflater inflater;
	protected Views father;
	
	public Container(Activity activity,View contentView,Views father) {
		this.activity = activity;
		this.father = father;
		inflater = activity.getLayoutInflater();
		this.contentView = contentView;
		this.showFunctionsListView(contentView);
		this.findView(contentView);
	}

	public abstract void checkCache();
	public abstract void findView(View contentView);
	public abstract void showFunctionsListView(View contentView);
	public abstract void initialize();
	public abstract void removeView();
	/**
	 * 后台服务返回的数据
	 * @param param
	 */
	public abstract void refresh(Object... param);

	public static int PAGE_ABOUTMY = 01;
	public static int PAGE_MYFRIENDS = 02;
}
